﻿using System;
using DapperExtensions.Mapper;
using ZLWeb.WebApiEntityBase;

namespace ZL.CRM.CommonEntity.AccOpr.Web
{
    public class AccWxCardAddYwcore : ResponseResultInfo
    {
        /// <summary>
        ///  CRM业务操作记录流水号（服务端生成）
        /// </summary>
        public string oprsno { get; set; }
        /// <summary>
        ///  手机号
        /// </summary>
        public string cellno { get; set; }

        /// <summary>
        ///  申请绑定的新凭证号(微信appid+"|"+openidopenid...)
        /// </summary>
        public string newcardno { get; set; }

        /// <summary>
        ///  微信会员卡code
        /// </summary>
        public string rcode { get; set; }

        /// <summary>
        ///  微信会员卡cardid
        /// </summary>
        public string rcardid { get; set; }

        /// <summary>
        ///  申请时间
        /// </summary>
        public DateTime? oprtime { get; set; }

    }

    public class AccWxCardAddYwcoreMapper : ClassMapper<AccWxCardAddYwcore>
    {
        public AccWxCardAddYwcoreMapper()
        {
            Table("#ywcore");
            Map(f => f.oprsno).Column("oprsno");
            Map(f => f.cellno).Column("cellno");
            Map(f => f.newcardno).Column("newcardno");
            Map(f => f.rcode).Column("rcode");
            Map(f => f.rcardid).Column("rcardid");
            Map(f => f.oprtime).Column("oprtime");
        }
    }
}
